//
//  PDFiumFileWrite.h
//  IAPDFKit
//
//  Created by macbook pro 2022 m2 on 2025/11/5.
//

#import "PDFiumFileWrite.h"

// 共享的文件写入回调（唯一实现）
int FileWriteCallback(FPDF_FILEWRITE* pThis, const void* pData, unsigned long size) {
    CustomFileWrite* customWrite = (CustomFileWrite*)pThis;
    return fwrite(pData, 1, size, customWrite->file) == size ? 1 : 0;
}
